package org.HisCanvas.ChrisRiffle.JFlightLog.logging;

import java.util.logging.Logger;



/**
 * LogController
 * @author RIF
 */
public class LogController {
	
	
	private static final String LOGGER_NAME =  "JFlightLogger";//LogController.class.getName();
	
	
	private static Logger logger;
	
	
	static{
		
		if(logger == null){
			initLogger();
		}
		
	}


	/**
	 * initLogger
	 */
	private static void initLogger() {
		
		logger = Logger.getLogger(LOGGER_NAME);
	}
	
	
	/**
	 * getLogger
	 * @return
	 */
	public static Logger getLogger(){
		return logger;
	}
	
	
	/**
	 * info
	 * @param pInfoMessage
	 */
	public static void info(String pInfoMessage){				
		logger.info(pInfoMessage);
	}
	
	
	/**
	 * warn
	 * @param pWarnMessage
	 */
	public static void warning(String pWarnMessage){
		logger.warning(pWarnMessage);
	}

	/**
	 * severe
	 * @param pSevereMessage
	 */
	public static void severe(String pSevereMessage){
		logger.severe(pSevereMessage);
	}
	
	
}




